grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
//grails.project.war.file = "target/${appName}-${appVersion}.war"
grails.project.dependency.resolution = {
    // inherit Grails' default dependencies
    inherits("global") {
        // uncomment to disable ehcache
        // excludes 'ehcache'
    }
    log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'	
    repositories {
        grailsPlugins()
        grailsHome()
        grailsCentral()

        // uncomment the below to enable remote dependency resolution
        // from public Maven repositories
        mavenLocal()
        mavenCentral()
//        mavenRepo "http://snapshots.repository.codehaus.org"
//        mavenRepo "http://repository.codehaus.org"
//        mavenRepo "http://download.java.net/maven/2/"
//        mavenRepo "http://repository.jboss.com/maven2/"
		
		mavenRepo "https://nexus.codehaus.org/content/repositories/snapshots" //added
    }
	
	//install-plugin geb
	//install-plugin spock
	//http://sysgears.com/articles/gebspock-functional-testing-grails
	def gebVersion = "0.6.2"
	def seleniumVersion = "2.9.0"

//	def gebVersion = "0.6.3" //added r
//	def seleniumVersion = "2.15.0" //added r
	def easybVersion = "2.0.5"
	def spockVersion = "0.5-groovy-1.7"
	
    dependencies {
        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.

        runtime 'mysql:mysql-connector-java:5.1.16'
		runtime "org.jsoup:jsoup:1.6.1"
		runtime "org.apache.commons:commons-exec:1.1"
		
		runtime "org.codehaus.geb:geb-spock:$gebVersion"
		runtime "org.codehaus.geb:geb-easyb:$gebVersion"
		runtime ("org.seleniumhq.selenium:selenium-htmlunit-driver:$seleniumVersion") { exclude "xml-apis" }
		runtime "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion"
		runtime "org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion"
		runtime "org.seleniumhq.selenium:selenium-support:$seleniumVersion"
		
		
		
    }
	plugins {
		runtime ":geb:$gebVersion"
		runtime ":spock:$spockVersion"		
		runtime ":easyb:$easybVersion"
	}
}
